/*
 * module-login
**/

(function($) {

	var fav_heart_box = $('.fav_heart_box'),
        num,
        selfPar;

    if(!fav_heart_box.length){
        return false;
    }

    // 心型
    fav_heart_box.on('click', '.fav_heart_80', function(){
        selfPar = $(this).parents('.fav_heart_box');
        if(selfPar.hasClass('faved_heart_box')){
            selfPar.removeClass('faved_heart_box');
            num = parseInt(selfPar.find('.num').text());
            num--
            selfPar.find('.num').html(num);
        }else{
            selfPar.addClass('faved_heart_box');
            num = parseInt(selfPar.find('.num').text());
            num++
            selfPar.find('.num').html(num);
        }
    });



})(jQuery);